//
//  SCollectHeaderView.m
//  WHstoreItemProtect
//
//  Created by 宋媛媛 on 2017/11/8.
//  Copyright © 2017年 sdwh.com. All rights reserved.
//

#import "SCollectHeaderView.h"

@interface SCollectHeaderView()

@property (weak, nonatomic) IBOutlet UITextField *searchTF;

@end

@implementation SCollectHeaderView

- (void)awakeFromNib{
    [super awakeFromNib];
    self.searchTF.leftViewMode = UITextFieldViewModeAlways;
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 36, 35)];
    UIView *blankView = [[UIView alloc] initWithFrame:CGRectMake(35, 2, 1, 33)];
    blankView.backgroundColor = MyColor(214, 214, 214, 214);
    [view addSubview:blankView];
    UIImageView *imgV = [[UIImageView alloc] initWithFrame:CGRectMake(7.5, 7.5, 20, 20)];
    imgV.image = [UIImage imageNamed:@"sousuo"];
    [view addSubview:imgV];
    self.searchTF.leftView = view;
}

@end
